package org.example.feign;

import org.example.dto.StudentInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 登陆成功通知教师机
 */
@FeignClient(
        name = "teacher",
        url = "http://192.168.103.13:8098",
        fallback = StudenServiceFallback.class  // 指定降级类
)
public interface StudenService {
    @PostMapping("/student/select")
    StudentInfoDTO select(@RequestBody StudentInfoDTO studentInfoDTo);
}
